package com.junxonline.common.dao.repository;

import com.junxonline.common.dao.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @ClassName: UserRepository
 * @Description: 用户数据操作类
 * @author JunX
 */

@Repository
public interface UserRepository extends JpaRepository<User, Long> {

    User findByUserId(Long userId);

    User findByUsername(String username);

    User findByUsernameAndPassword(String username, String password);

}
